package tman.system.peer.tman;

import java.util.ArrayList;

import common.peer.PeerAddress;

import se.sics.kompics.Event;

public class TManPartnersResponse extends Event {
        

    ArrayList<PeerAddress> partners = new ArrayList<PeerAddress>();
    PeerAddress succ;
    PeerAddress pred;

//-------------------------------------------------------------------
    public TManPartnersResponse(ArrayList<PeerAddress> partners) {
        this.partners = partners;
    }

    public TManPartnersResponse(ArrayList<PeerAddress> partners, PeerAddress succ, PeerAddress pred) {
        this.partners = partners;
        this.succ = succ;
        this.pred = pred;
    }

    public TManPartnersResponse() {
    }

//-------------------------------------------------------------------
    public ArrayList<PeerAddress> getPartners() {
        return this.partners;
    }

    public PeerAddress getSucc() {
        return succ;
    }

    public PeerAddress getPred() {
        return pred;
    }
}
